Force restart WSL

To force restart WSL (Windows Subsystem for Linux) on your Windows 11 machine, you can do it directly from PowerShell or Command Prompt. Here are the steps:

🔄 Method 1: Using PowerShell

  1. Open PowerShell as Administrator.
  2. Run:
    wsl --shutdown
    
    This will stop all running WSL instances.
  3. Then start WSL again by simply typing:
    wsl
    

🔄 Method 2: Using Command Prompt

  1. Open Command Prompt as Administrator.
  2. Run:
    wsl --shutdown
    
  3. Restart WSL with:
    wsl
    

🔄 Method 3: Restart LxssManager Service

If WSL is stuck, restarting the LxssManager service can help:

  1. Open PowerShell or Command Prompt as Administrator.
  2. Run:
    net stop LxssManager
    net start LxssManager
    
    This forces WSL to restart at the system level.

Tip: If you often need to restart WSL, you can create a small batch script with these commands and run it whenever needed.

Also See

File5FileLast Modified
在WSL 中安裝 Ubuntu在WSL 中安裝 Ubuntu2:25 PM - January 12, 2026
Windows 上透過 WSL 進入 Ubuntu shellWindows 上透過 WSL 進入 Ubuntu shell2:25 PM - January 12, 2026
Restart DockerRestart Docker2:25 PM - January 12, 2026
set WSL’s default distributionset WSL’s default distribution3:14 PM - December 15, 2025
install Ubuntu on WSLinstall Ubuntu on WSL2:34 PM - December 15, 2025